package es.us.lsi.aws.api.server.controllers;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class ExceptionController {

	public static void processError(HttpServletRequest req,
			HttpServletResponse res, Exception e) {

		if (e != null) {
			try {
				res.getWriter().print(e.getMessage());
				e.printStackTrace();
			} catch (IOException e1) {
				e1.printStackTrace();
			}
		}
	}

}
